package com.lilihub.miaosha.dao;

import com.lilihub.miaosha.domain.MiaoshaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @BelongsProject: miaosha2
 * @BelongsPackage: com.lilihub.miaosha.dao
 * @Author: LiYing
 * @CreateTime: 2021-04-25 11:18
 * @Description:
 */

@Mapper
public interface MiaoshaUserDao {


    @Select("select * from miaosha_user where id = #{id} ")
    public MiaoshaUser getById(@Param("id") long id);


    @Update("update miaosha_user set password = #{password} where id = #{id}")
    void update(MiaoshaUser toBeUpdate);
}
